<?php
/**
 * Groups module for XOOPS
 *
 * You may not change or alter any portion of this comment or credits
 * of supporting developers from this source code or any supporting source code 
 * which is considered copyrighted (c) material of the original comment or credit authors.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * @copyright       The Groups Project http://code.google.com/p/groupsforxoops/
 * @license         http://www.fsf.org/copyleft/gpl.html GNU public license
 * @package         groups
 * @since           2.3.0
 * @author          Hui Xiao < xh.8326@gmail.com >
 * @version         $Id: form.us.group.perm.php Sat Jul 18 12:48:09 CST 2009
 */

if ( !defined("XOOPS_ROOT_PATH") ) exit;

$form = new XoopsForm("", "form", $formUrl, "post",true);
$access_perm = new XoopsFormRadio(_GP_FORM_GROUP_ACCESS_PERM,"access_perm",$group_arg["access_perm"],"<br />");
$access_perm->addOptionArray($perm_handler->getDefAccessOptions());
$form->addElement($access_perm);

$post_perm = new XoopsFormRadio(_GP_FORM_GROUP_POST_PERM,"post_perm",$group_arg["post_perm"],"<br />");
$post_perm->addOptionArray($perm_handler->getDefPostOptions());
$form->addElement($post_perm);

$reply_perm = new XoopsFormRadio(_GP_FORM_GROUP_REPLY_PERM,"reply_perm",$group_arg["reply_perm"],"<br />");
$reply_perm->addOptionArray($perm_handler->getDefReplyOptions());
$form->addElement($reply_perm);

$join_perm = new XoopsFormRadio(_GP_FORM_GROUP_JOIN_PERM,"join_perm",$group_arg["join_perm"],"<br />");
$join_perm->addOptionArray($perm_handler->getDefJoinOptions());
$form->addElement($join_perm);

$footprint_perm = new XoopsFormRadio(_GP_FORM_GROUP_FOOT_PERM,"footprint_perm",$group_arg["footprint_perm"],"<br />");
$footprint_perm->addOptionArray($perm_handler->getDefFootprintOptions());
$form->addElement($footprint_perm);

$form->addElement(new XoopsFormHidden("next","4"));
$form->addElement(new XoopsFormHidden("group_id",$group_id));
$form->addElement(new XoopsFormButton("","submit",_SUBMIT,"submit"));
$form->assign($xoopsTpl);